﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class AdShow : MonoBehaviour
{
    public enum AdType
    {
        NowAd,
        Zhengchang,
        YanshiAd
    }
    public AdType adType;
    // Start is called before the first frame update
    void Start()
    {
        
    }

    // Update is called once per frame
    void Update()
    {
        
    }
    public void ShowAd()
    {
        switch (adType)
        {
            case AdType.NowAd:
                Debug.Log("NowAd");
                if (!AdManager.Instance.ShieldAddress)
                {
                    AdManager.Instance.ShowNative(0.0f);
                }
                break;
            case AdType.Zhengchang:
                if (!AdManager.Instance.ShieldAddress)
                {
                    AdManager.Instance.ShowNative();
                }
                Debug.Log("Zhengchang");

                break;
            case AdType.YanshiAd:
                if (!AdManager.Instance.ShieldAddress)
                {
                    AdManager.Instance.ShowNative(0.1f);
                }
                Debug.Log("YanshiAd");
                break;
        }
    }
}
